package com.hymall.bean.vo;

import java.util.List;

/**
 * @Author: haiyuny
 * @Date: 2022/7/19 10:36
 * @Description:
 */
public class WXOrderListVO {

    private String orderStatusText;
    private int aftersaleStatus;
    private boolean isGroupin;
    private String orderSn;
    private double actualPrice;
    private List<GoodsListEntity> goodsList;
    private int id;
    private HandleOptionEntity handleOption;

    public void setOrderStatusText(String orderStatusText) {
        this.orderStatusText = orderStatusText;
    }

    public void setAftersaleStatus(int aftersaleStatus) {
        this.aftersaleStatus = aftersaleStatus;
    }

    public void setIsGroupin(boolean isGroupin) {
        this.isGroupin = isGroupin;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public void setActualPrice(double actualPrice) {
        this.actualPrice = actualPrice;
    }

    public void setGoodsList(List<GoodsListEntity> goodsList) {
        this.goodsList = goodsList;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setHandleOption(HandleOptionEntity handleOption) {
        this.handleOption = handleOption;
    }

    public String getOrderStatusText() {
        return orderStatusText;
    }

    public int getAftersaleStatus() {
        return aftersaleStatus;
    }

    public boolean isIsGroupin() {
        return isGroupin;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public double getActualPrice() {
        return actualPrice;
    }

    public List<GoodsListEntity> getGoodsList() {
        return goodsList;
    }

    public int getId() {
        return id;
    }

    public HandleOptionEntity getHandleOption() {
        return handleOption;
    }

    public class GoodsListEntity {
        /**
         * number : 1
         * picUrl : http://yanxuan.nosdn.127.net/56f4b4753392d27c0c2ccceeb579ed6f.png
         * price : 228.0
         * id : 188
         * goodsName : Carat钻石汤锅24cm
         * specifications : ["标准"]
         */
        private int number;
        private String picUrl;
        private double price;
        private int id;
        private String goodsName;
        private List<String> specifications;

        public void setNumber(int number) {
            this.number = number;
        }

        public void setPicUrl(String picUrl) {
            this.picUrl = picUrl;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public void setId(int id) {
            this.id = id;
        }

        public void setGoodsName(String goodsName) {
            this.goodsName = goodsName;
        }

        public void setSpecifications(List<String> specifications) {
            this.specifications = specifications;
        }

        public int getNumber() {
            return number;
        }

        public String getPicUrl() {
            return picUrl;
        }

        public double getPrice() {
            return price;
        }

        public int getId() {
            return id;
        }

        public String getGoodsName() {
            return goodsName;
        }

        public List<String> getSpecifications() {
            return specifications;
        }
    }

    public class HandleOptionEntity {
        /**
         * cancel : false
         * confirm : false
         * rebuy : false
         * pay : false
         * comment : false
         * delete : false
         * aftersale : false
         * refund : true
         */
        private boolean cancel;
        private boolean confirm;
        private boolean rebuy;
        private boolean pay;
        private boolean comment;
        private boolean delete;
        private boolean aftersale;
        private boolean refund;

        public void setCancel(boolean cancel) {
            this.cancel = cancel;
        }

        public void setConfirm(boolean confirm) {
            this.confirm = confirm;
        }

        public void setRebuy(boolean rebuy) {
            this.rebuy = rebuy;
        }

        public void setPay(boolean pay) {
            this.pay = pay;
        }

        public void setComment(boolean comment) {
            this.comment = comment;
        }

        public void setDelete(boolean delete) {
            this.delete = delete;
        }

        public void setAftersale(boolean aftersale) {
            this.aftersale = aftersale;
        }

        public void setRefund(boolean refund) {
            this.refund = refund;
        }

        public boolean isCancel() {
            return cancel;
        }

        public boolean isConfirm() {
            return confirm;
        }

        public boolean isRebuy() {
            return rebuy;
        }

        public boolean isPay() {
            return pay;
        }

        public boolean isComment() {
            return comment;
        }

        public boolean isDelete() {
            return delete;
        }

        public boolean isAftersale() {
            return aftersale;
        }

        public boolean isRefund() {
            return refund;
        }
    }
}
